﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace NDepot.Models.UI
{
    public class OrderInput
    {
        [HiddenInput(DisplayValue = false)]
        public string Id { get; set; }

        [RequiredAttribute]
        public string Name { get; set; }

        [RequiredAttribute]
        public string Address { get; set; }

        [RequiredAttribute]
        [DisplayName("E-Mail")]
        [RegularExpression("^([0-9a-zA-Z]([-.\\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\\w]*[0-9a-zA-Z]\\.)+[a-zA-Z]{2,9})$", 
            ErrorMessage="Invalid Mail Address.")]
        [DataType(DataType.EmailAddress)]
        public string EMail { get; set; }

        [RequiredAttribute]
        [DisplayName("Pay with")]
        public string PayType { get; set; }
    }
}